<!DOCTYPE html>

<html xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui"
	xmlns:c="http://java.sun.com/jsp/jstl/core">


<h:head>

	<style type="text/css">
.content {
	position: relative;
	width: 100%;
	margin: 0 auto;
}
</style>
</h:head>

<h:body>
	<img class="content" src="#{resource['images/top.jpg']}"
		alt="immagine top"></img>

	<!-- Importo il css per la customizzazione della pagina -->
	<h:outputStylesheet name="css/custom.css" />

	<f:view contentType="text/html">
		<f:event type="preRenderView"
			listener="#{pacchettoBean.obtainListaPacchettiCliente}" />
	</f:view>


	<p:layout fullPage="false" style=" min-width: 90%; min-height:600px;">

		<p:layoutUnit position="north"
			style="min-height:100px; font-size: 13pt">
			<p:toolbar>
				<p:toolbarGroup align="right">
					<h:form>
						<p:commandButton id="logoutButton" value="Logout"
							icon="ui-icon-play" action="#{logoutBean.logout()}" />
					</h:form>
				</p:toolbarGroup>
			</p:toolbar>
		</p:layoutUnit>



		<!-- START - ZONA SX DELLA PAGINA -->
		<p:layoutUnit position="west" collapsible="true" size="22%" gutter="0">

			<!-- #START LEFT-MENU Inserisco il menu laterale dall'opportuno file  -->
			<ui:insert name="left-menu">
				<div style="padding: 0px 0px 0px 0px">
					<ui:include src="left_menu.xhtml" />
				</div>
			</ui:insert>


		</p:layoutUnit>
		<!-- STOP - ZONA SX DELLA PAGINA -->

		<!-- START - ZONA DX DELLA PAGINA -->
		<p:layoutUnit position="center" style="padding-left: 10px">

			<ui:insert name="lista_pacchetti">
				<ui:include src="packet_list.xhtml" />
			</ui:insert>

		</p:layoutUnit>
		<!-- STOP - ZONA DX DELLA PAGINA -->

	</p:layout>

	<img class="content" src="#{resource['images/bottom.jpg']}"
		alt="immagine top"></img>

</h:body>
</html>